package com.example.springboot_blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot_blog.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface UserDao extends BaseMapper<User> {
    @Select("select * from user where username=#{username}")
    public User selectByUsername(String username);
    @Select("select * from user where email=#{email}")
    public User selectByEmail(String email);

}
